using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SPCAMLEditor
{
    public partial class XmlEditDialog : Form
    {

        TextEditor _textEditor;
       
        public XmlEditDialog()
        {
            InitializeComponent();

            _textEditor = new TextEditor();
            _textEditor.Dock = DockStyle.Fill;
            this.editControlPanel.Controls.Add(_textEditor);
        }

        private void BtnOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }

        private void BtnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
       
        private void saveButton_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }

        private void cancelButton_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }

        public TextEditor TextEditor
        {
            get
            {
                return _textEditor;
            }
        }
       
    }
}